<% unless @parent.blank? -%>
  <%= areas_crumble_path_with_link(@parent){|p| link_to_remote p.title, :url => {:controller => 'areas', :action => 'list', :id => p.id}, :before => "$('#areas-list,#areas-list-notice').hide();$('#areas-list-spinner').show()" } %>
<% end -%>
 > <span style="color:#CCC;">请选择</span><br />
<% for a in @areas -%>
  <% if a.children_count > 0 -%>
    <%= link_to_remote a.title, :url => {:controller => 'areas', :action => 'list', :id => a.id }, :before => "$('#areas-list,#areas-list-notice').hide();$('#areas-list-spinner').show()" %>
  <% else -%>
    <%= link_to_function a.title, "select_area('#school_area_id', #{a.id}, '#{a.title}', '你已将学校所在地选定为')" %>
  <% end -%>
<% end -%>